import { Tools } from 'weaver-mobile';

//获取列表数据
export const getList = (params={}) => {
	return Tools.callApi({url:'/api/fna/*********/getList',  method:'GET', params});
}

//获取form 表单
export const advancedSearch = (params={}) => {
	return Tools.callApi({url:'/api/fna/invoiceLedger/advancedSearch',  method:'GET', params});
}

/*************************************************/
//记一笔类型
export const getTakeOneNoteType = (params={}) => {
	return Tools.callApi({url:'/api/fna/fnaEmbileMicroReport/getTakeOneNoteType',  method:'GET', params});
}

//记一笔类型对应 form
export const getTakeOneNoteSetPage = (params={}) => {
	return Tools.callApi({url:'/api/fna/fnaEmbileMicroReport/getTakeOneNoteSetPage',  method:'GET', params});
}

//记一笔对应类型  添加附件
export const getTakeOneNoteSetInvoicePage = (params={}) => {
	return Tools.callApi({url:'/api/fna/fnaEmbileMicroReport/getTakeOneNoteSetInvoicePage',  method:'GET', params});
}

//记一笔保存
export const saveTakeOneNoteSet = (params={}) => {
	return Tools.callApi({url:'/api/fna/fnaEmbileMicroReport/saveTakeOneNoteSet',  method:'POST', params});
}

//添加发票  附件  按钮
export const getTakeOneNoteSetselect = (params={}) => {
	return Tools.callApi({url:'/api/fna/fnaEmbileMicroReport/getTakeOneNoteSetselect',  method:'GET', params});
}

//添加附件  附件转发票
export const doCheckInvoicePage = (params={}) => {
	return Tools.callApi({url:'/api/fna/fnaEmbileMicroReport/doCheckInvoicePage',  method:'POST', params});
}


//生成记账
export const invoiceCreatTakeOneNoteSet = (params={}) => {
	return Tools.callApi({url:'/api/fna/fnaEmbileMicroReport/invoiceCreatTakeOneNoteSet',  method:'POST', params});
}

//删除当前发票
export const delTakeOneNoteSet = (params={}) => {
	return Tools.callApi({url:'/api/fna/fnaEmbileMicroReport/delTakeOneNoteSet',  method:'POST', params});
}

//删除 报销提醒
export const doDeleteReimbursementReminder = (params={}) => {
	return Tools.callApi({url:'/api/fna/fnaEmbileMicroReport/doDeleteReimbursementReminder',  method:'POST', params});
}

//获取 发起报销 选项
export const getInvoiceCreatWorkflow = (params={}) => {
	return Tools.callApi({url:'/api/fna/fnaEmbileMicroReport/getWorkflowList',  method:'GET', params});
}

//发起流程
export const creatWorkflow = (params={}) => {
	return Tools.callApi({url:'/api/fna/fnaEmbileMicroReport/creatWorkflow',  method:'POST', params});
}

//自动验票
export const getInvoiceInfoByCheck = (params={}) => {
	return Tools.callApi({url:'/api/fna/fnaEmbileMicroReport/getInvoiceInfoByCheck',  method:'GET', params});
}

//获取发票录入 数据
export const getEnterInvoiceTap = (params={}) => {
	return Tools.callApi({url:'/api/fna/fnaEmbileMicroReport/getEnterInvoiceTap',  method:'GET', params});
}




